
<template>
  <swiper ref="mySwiper" :options="swiperOptions">
    <div class="swiper-slide">
        <img src="../assets/carPic1.jpg" alt="">
    </div>
    <div class="swiper-slide">
        <img src="../assets/carPic2.jpg" alt="">
    </div>
    <div class="swiper-slide">
        <img src="../assets/carPic3.jpg" alt="">
    </div>
    <div class="swiper-slide">
        <img src="../assets/carPic4.jpg" alt="">
    </div>
    <div class="swiper-slide">
        <img src="../assets/carPic5.jpg" alt="">
    </div>
    <div class="swiper-slide">
        <img src="../assets/carPic6.jpg" alt="">
    </div>
    <div class="swiper-pagination3" slot="pagination"></div>
  </swiper>
</template>



<script>
  export default {
    name: 'carrouselBot',
    data() {
      return {
        swiperOptions: {
          autoplay:true,
          pagination: {
            el: '.swiper-pagination3',
            clickable :true
          },
          loop : true,
          // Some Swiper option/callback...
        }
      }
    },
    computed: {
      swiper() {
        return this.$refs.mySwiper.$swiper
      }
    },
    mounted() {
      //console.log('Current Swiper instance object', this.swiper)
      //this.swiper.slideTo(0, 1000, false)
    }
  }
</script>

<style lang="scss">
    .swiper-pagination3.swiper-pagination-bullets{
        position: absolute; 
        width: 305px; 
        height: 23px; 
        left: 253px; 
        bottom: 19px; 
        z-index: 5;
        .swiper-pagination-bullet{width: 24px; height: 24px; display: block;border-radius: 0%;background: url(../assets/dots2.png); opacity: 1; float: left; margin: 0 10px 0 10px; background-size: 100% 100%;}
        .swiper-pagination-bullet-active{width: 24px; height: 24px; display: block;border-radius: 0%;background: url(../assets/dots1.png); opacity: 1; float: left; margin: 0 10px 0 10px; background-size: 100% 100%;}
        }

</style>